package com.ecloud.support.generator.custom;

import lombok.Getter;
import lombok.Setter;

/**
 * 自定义模板配置
 *
 * @author LiuGangQiang Create in 2021/06/08
 */
@Getter
@Setter
public class CustomerTemplateConfig {
    /* 模板位置 */
    private String controller = "/templates/controller.java.vm";
    private String entity = "/templates/entity.java.vm";
    private String mapper = "/templates/mapper.java.vm";
    private String xml = "/templates/mapper.xml.vm";
    private String service = "/templates/service.java.vm";
    private String serviceImpl = "/templates/serviceImpl.java.vm";
    private String dto = "/templates/dto.java.vm";
    private String vo = "/templates/vo.java.vm";
    private String convert = "/templates/convert.java.vm";

    private String dtoPath;
    private String voPath;
    private String convertPath;

    /**
     * 禁用全部模板
     *
     * @author LiuGangQiang Create in 2021/07/02
     */
    public void disable() {
        this.controller = null;
        this.entity = null;
        this.mapper = null;
        this.xml = null;
        this.service = null;
        this.serviceImpl = null;
        this.dto = null;
        this.vo = null;
        this.convert = null;
    }
}
